package influence.propagation.implementation;

import influence.propagation.core.Model;
import influence.propagation.core.OutputMode;
import influence.propagation.core.ResultSet;
import influence.propagation.exception.IllegalArgumentException;
import influence.propagation.exception.InputFormatException;

import java.io.File;
import java.io.FileNotFoundException;

import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.factory.GraphDatabaseFactory;

public class TestParser {

	public static void main(String[] args) throws FileNotFoundException, IllegalArgumentException, InputFormatException {
		GraphDatabaseService db = new GraphDatabaseFactory().newEmbeddedDatabase("C:\\Users\\Valerio\\Documents\\Neo4j\\databaseTesi");
		File graph = new File("C:\\Users\\Valerio\\Desktop\\db.graph");
		File activeNode = new File("C:\\Users\\Valerio\\Desktop\\activeNode.txt");
		Model m = ModelFactory.createNewIndependentCascadeModel(db, graph, activeNode);
		ResultSet rs = m.executeAlgoritm(OutputMode.BREADTH);
		System.out.println(rs);
		db.shutdown();
	}

}
